package com.xinyue.user.pojo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class User implements Serializable {

    private static final long serialVersionUID = -90000037L;
    
    private Integer id;

    private String username;

    private String password;

    private String phone;

    private String email;

    private Byte userstatus;

    private Byte certifiedstatus;

    private String avatar;

    private Byte gender;

    //private String genderStr;

    private String nickname;

    private String jieshao;

    private String address;

    private Double money;

    private String interest;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date created;
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updated;

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Byte getUserstatus() {
        return userstatus;
    }

    public void setUserstatus(Byte userstatus) {
        this.userstatus = userstatus;
    }

    public Byte getCertifiedstatus() {
        return certifiedstatus;
    }

    public void setCertifiedstatus(Byte certifiedstatus) {
        this.certifiedstatus = certifiedstatus;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }


   /* public String getGenderStr() {
    	//genderStr   0 男  1  nü
    	String genderStr="";
		if(this.gender==0){
			genderStr = "男";
		}else if(this.gender==1){
			genderStr = "女";
		}
    	return genderStr;
	}

	public void setGenderStr(String genderStr) {
		this.genderStr = genderStr;
	}
*/
	public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getJieshao() {
        return jieshao;
    }

    public void setJieshao(String jieshao) {
        this.jieshao = jieshao == null ? null : jieshao.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", phone=" + phone + ", email="
				+ email + ", userstatus=" + userstatus + ", certifiedstatus=" + certifiedstatus + ", avatar=" + avatar
				+ ", gender=" + gender + ", nickname=" + nickname + ", jieshao=" + jieshao + ", address=" + address
				+ ", money=" + money + ", interest=" + interest + ", created=" + created + ", updated=" + updated + "]";
	}


}